<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <%@include file="../../common/include_list_head.jsp" %>
    <script type="text/javascript" src="/clientui/js/form/lister.js"></script>
    <style type="text/css">
        ul.lister{
            height:250px;
        }
        div.listerLinksLeft,div.listerLinksRight{
            text-align:left;
            width:240px;
            padding:5px;
        }
        .listBtn{
            padding:60px 0 0 0;
            float:left;
        }
        body{
        }
    </style>
    <script type="text/javascript">
        $(document).ready(function(){
            $("#listA").lister("listB");
        });
        function getSelValue(){
            var msg="";
            msg=$('#listA').lister('listB').getList();
            if(msg==""){
                msg="无选择"
            }
            top.Dialog.alert(msg);
        }
        function selectAll(){
            $('#listA').lister('listB').sendAll(true);
        }
        function cancelAll(){
            $('#listA').lister('listB').sendAll(false);
        }


    </script>
</head>
<body  style="overflow-y:hidden">
<div id="scrollContent">
    <s:if test="actionErrors.size()>0 || actionMessages.size()>0 || fieldErrors.size()>0">
        <div id="SystemErrorMessage">
            <s:actionerror/>
            <s:actionmessage/>
            <s:fielderror/>
        </div>
    </s:if>
    <div>
        <ul id="listA">
            <s:iterator value="resultData">
                <li el="<s:property value="appid"/>"><s:property value="appname"/></li>
            </s:iterator>
        </ul>
        <div class="listBtn">
            <button  onclick="selectAll()"><span class="icon_btn_right">全选</span></button><br /><br />
            <button onclick="cancelAll()"><span class="icon_btn_left">还原</span></button><br /><br />
            <button><span class="icon_save">保存</span></button><br /><br />
            <button onclick="top.Dialog.close();"><span class="icon_no">关闭</span></button><br /><br />
        </div>
        <ul id="listB"></ul>
    </div>
    <div class="clear"></div>
</div>
</body>
</html>
